package com.z_talk.core.model;

import com.z_talk.core.util.CodeUtils;

import java.io.Serializable;

/**
 * 用户类
 */
public class UserInfo implements Serializable {

    private static final long serialVersionUID = 6454287275375509236L;
    private String userId;
    private String nickName;
    private String password;
    private String age;
    private String sex;

    public UserInfo(String nickName, String password, String age, String sex) {
        this.nickName = nickName;
        this.password = password;
        this.age = age;
        this.sex = sex;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getAge() {
        return age;
    }

    public void setAge(String age) {
        this.age = age;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    @Override
    public String toString() {
        return "UserInfo{" +
                "nickName='" + nickName + '\'' +
                ", password='" + password + '\'' +
                ", age='" + age + '\'' +
                ", sex='" + sex + '\'' +
                '}';
    }
}
